#ifndef _COM_MEM_H_INCLUDED_
#define _COM_MEM_H_INCLUDED_

#include <stdlib.h>
#include <string.h>


#define NEW							new
#define SAFE_DEL(p)					{ if (p) { delete (p); p = NULL; } }
#define SAFE_DEL_ARRAY(p)			{ if (p) { delete[] (p); p = NULL; } }

#define STRDUP(dest, src) {dest = NEW char[strlen(src)+1]; strcpy(dest,src);}

#endif //_COM_MEM_H_INCLUDED_

